<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<title>用户注册-{$_G['setting']['site_name']}</title>
	<base href="{$_G['site_url']}">
	<script src="static/js/jquery-3.3.1.min.js"></script>
	<script src="static/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="static/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="static/css/common.css">
	<link rel="stylesheet" type="text/css" href="static/css/signin.css">
</head>
<body class="text-center">
	{if !$_G['setting']['allow_register']}
		<div class="form-signin">
			<div class="card">
			    <div class="card-header">阿哦~注册通道已关闭</div>
			    <div class="card-body">
			    	<p>抱歉，目前暂时关闭自助注册通道。</p>
			    	{if $_G['setting']['qq']}
			    		<p>需要开户请联系QQ：<span class="badge badge-success">{$_G['setting']['qq']}</span></p>
			    	{/if}
			    </div>
			</div>
		</div>
	{else}
		<form class="form-signin" autocomplete="off">
			<h1 class="h3 mb-3 font-weight-normal">用户注册</h1>
			<label for="account" class="sr-only">账号</label>
			<input type="text" id="account" class="form-control" name="account" placeholder="账号名称" required autofocus>
			<label for="password" class="sr-only">密码</label>
			<input type="password" id="password" class="form-control" name="password" placeholder="登录密码" required>
			<label for="password_confirm" class="sr-only">重复密码</label>
			<input type="password" id="password_confirm" class="form-control" name="password_confirm" placeholder="重复密码" required>
			<button class="btn btn-lg btn-success btn-block btn-submit ajax-post mt-3" type="submit">注 册</button>
			<a class="btn btn-lg btn-info btn-block" href="{:url('index/account/login')}">登 录</a>
			<p class="mt-5 mb-3 text-muted">&copy; 2019-2099</p>
		</form>
	{/if}
	<script type="text/javascript" src="static/js/common.js"></script>
</body>
</html>
